package com.fan.gofast.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ResultEnum {

    /**
     * 成功
     */
    SUCCESS(0, "SUCCESS"),

    SYSTEM_EXCEPTION(50000, "系统异常"),

    REQUEST_HANDLE_FAILURE(50001, "请求处理失败"),

    PARAM_ERROR(50002, "参数错误"),

    PARAM_DUPLICATE(50003,"数据重复添加"),

    DATA_NOT_FOUND(50004,"数据不存在"),



    ;

    public final int code;

    public final String message;

}
